package com.zoho.aimei.utils;

import lombok.experimental.UtilityClass;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;

@Slf4j
@UtilityClass
public class getCrmFieldUtil {

    // 获取 产品 模块的字段
    public List<String> getProductFieldList() {
        List<String> fieldList = new ArrayList<>();
        fieldList.add("Product_Code");
        fieldList.add("changerate");
        fieldList.add("AffiliatedCompany");
        return fieldList;
    }

    // 获取 产品仓库 模块的字段
    public List<String> getWarehouseFieldList() {
        List<String> fieldList = new ArrayList<>();
        fieldList.add("Name");
        fieldList.add("warehouse_address");
        fieldList.add("warehouse_code");
        fieldList.add("phone");
        fieldList.add("charge_person");
        fieldList.add("AffiliatedCompany");
        return fieldList;
    }

    // 获取 工厂产品转码 模块的字段
    public List<String> getGongchangTranferFieldList() {
        List<String> fieldList = new ArrayList<>();
        fieldList.add("Name");
        fieldList.add("crm_code");
        fieldList.add("level_1_classification_name");
        fieldList.add("level_2_classification_name");
        fieldList.add("level_3_classification_name");
        fieldList.add("level_4_classification_name");
        fieldList.add("level_5_classification_name");
        return fieldList;
    }

    // 获取 销售出库单 模块的字段
    public List<String> getSaleoutlistallFieldList() {
        List<String> fieldList = new ArrayList<>();
        fieldList.add("ERP");
        return fieldList;
    }

    // 获取 销售发货单 模块的字段
    public List<String> getDispatchListFieldList() {
        List<String> fieldList = new ArrayList<>();
        fieldList.add("KHCompany");
        fieldList.add("erp_id");
        fieldList.add("BusinessType");
        fieldList.add("SalesType");
        fieldList.add("ShippingDate");
        fieldList.add("order_number");
        fieldList.add("OrderDate");
        fieldList.add("Account_Name");
        fieldList.add("Salesman");
        fieldList.add("ShippingAddressnew");
        fieldList.add("LinkingModule9");
        fieldList.add("ERP");
        fieldList.add("pk_id");
        return fieldList;
    }

    // 获取 客户 模块的字段
    public List<String> getAccountFieldList() {
        List<String> fieldList = new ArrayList<>();
        fieldList.add("ERP_account_num");
        fieldList.add("account_num");
        fieldList.add("KHCompany");
        return fieldList;
    }

    // 获取 现存量 模块的字段
    public List<String> getCurrentStockFieldList() {
        List<String> fieldList = new ArrayList<>();
        fieldList.add("Name");
        fieldList.add("AffiliatedCompany");
        return fieldList;
    }

    // 获取 发货单 模块的字段
    public List<String> getAcceptListFieldList() {
        List<String> fieldList = new ArrayList<>();
        fieldList.add("ERP");
        fieldList.add("AffiliatedCompany");
        fieldList.add("pk_id");
        return fieldList;
    }

    // 获取 发货单明细 模块的字段
    public List<String> getAcceptDetailFieldList() {
        List<String> fieldList = new ArrayList<>();
        fieldList.add("autoid");
        return fieldList;
    }

    // 获取 客户管理维度 模块的字段
    public List<String> getCustomerAuthFieldList() {
        List<String> fieldList = new ArrayList<>();
        fieldList.add("KHCompany");
        fieldList.add("type_code");
        fieldList.add("cADCode");
        fieldList.add("account_name");
        return fieldList;
    }

    // 获取 销售订单 模块的字段
    public List<String> getSaleOrderFieldList() {
        List<String> fieldList = new ArrayList<>();
        fieldList.add("ERP_Number");
        fieldList.add("KHCompany");
        return fieldList;
    }

    // 获取 销售开票 模块的字段
    public List<String> getSaleTicketFieldList() {
        List<String> fieldList = new ArrayList<>();
        fieldList.add("InvoiceNumber");
        return fieldList;
    }
}


